\section{network::i\_\-socket Class Reference}
\label{classnetwork_1_1i__socket}\index{network::i_socket@{network::i\_\-socket}}
This class represents a socket.  


{\tt \#include $<$i\_\-socket.h$>$}

Inheritance diagram for network::i\_\-socket::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classnetwork_1_1i__socket}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual \bf{$\sim$i\_\-socket} ()\label{classnetwork_1_1i__socket_4d6a6d42866fe7edb7415bceeb05d6f8}

\item 
virtual void \bf{send} (const string \&str)=0
\begin{CompactList}\small\item\em send sends a string via the socket. \item\end{CompactList}\item 
virtual string \bf{recv} ()=0
\begin{CompactList}\small\item\em recv receives a string from the socket. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class represents a socket. 



Definition at line 33 of file i\_\-socket.h.

\subsection{Member Function Documentation}
\index{network::i_socket@{network::i\_\-socket}!recv@{recv}}
\index{recv@{recv}!network::i_socket@{network::i\_\-socket}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual string network::i\_\-socket::recv ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classnetwork_1_1i__socket_611208a9f52680378427b1fff5e22ed9}


recv receives a string from the socket. 

\begin{Desc}
\item[Returns:]a string is returned. \end{Desc}


Implemented in \bf{network::rs\_\-socket} \doxyref{p.}{classnetwork_1_1rs__socket_d77b7334c0c5c878afb2163948413d3c}, and \bf{network::tcp\_\-socket} \doxyref{p.}{classnetwork_1_1tcp__socket_20c373a6228e1234636e5efc12243da2}.\index{network::i_socket@{network::i\_\-socket}!send@{send}}
\index{send@{send}!network::i_socket@{network::i\_\-socket}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void network::i\_\-socket::send (const string \& {\em str})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classnetwork_1_1i__socket_8cb41213426b4744601dacba0ddae3fc}


send sends a string via the socket. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em str}]is the string, which should be sent \end{description}
\end{Desc}


Implemented in \bf{network::rs\_\-socket} \doxyref{p.}{classnetwork_1_1rs__socket_b61afed0e8f4be5e77d613c3c5685063}, and \bf{network::tcp\_\-socket} \doxyref{p.}{classnetwork_1_1tcp__socket_5e838337e232bfc5ef45fa0a1ff1db57}.

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
network/i\_\-socket.h\end{CompactItemize}
